package com.dkts.oil;

import org.mybatis.spring.annotation.MapperScan;
import org.mybatis.spring.boot.autoconfigure.MybatisAutoConfiguration;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.boot.autoconfigure.orm.jpa.HibernateJpaAutoConfiguration;
import org.springframework.boot.autoconfigure.security.servlet.SecurityAutoConfiguration;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.cache.annotation.EnableCaching;

import lombok.extern.slf4j.Slf4j;
import org.springframework.scheduling.annotation.EnableScheduling;

//@SpringBootApplication(exclude = { SecurityAutoConfiguration.class })
//@MapperScan("com.dkts.oil.mysql.mapper")
@EnableCaching
@Slf4j
@EnableScheduling
@SpringBootApplication(
		exclude = {
				DataSourceAutoConfiguration.class,
				HibernateJpaAutoConfiguration.class,
				SecurityAutoConfiguration.class,
				MybatisAutoConfiguration.class
		}
)
public class OilServiceApplication {
	public static void main(String[] args) {
		SpringApplicationBuilder app = new SpringApplicationBuilder(OilServiceApplication.class);
		app.build();
		app.run(args);
		log.info("=========================Service 启动成功=========================");
	}
}
